


from flask import Blueprint,Flask
from flask import request,session,Response
import random
from src.database.redis import Db_Redis
# bp = Blueprint("room", __name__)


class Room(Db_Redis):
    def create_room(self):
        data={'code':1,'mess':'房间号：'}  
        room_id = random.randint(1, 999999999)
        self.set_data(self.redis_con,'room-%s'%room_id,'',7)
        data['room_id'] = room_id
        data['mess']='房间号：%s'%room_id
        return data


















